

package com.coding4play.mqtt.common.entity.message;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Retain标志消息存储
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RetainMessage implements Serializable {

    private static final long serialVersionUID = -7548204047370972779L;

    private String topic;

    private byte[] messageBytes;

    private Integer mqttQoS;
}
